package com.github.baichuan.application.scaffold.rest.dto.app;

import com.github.baichuan.application.scaffold.rest.jpa.app.AppSpecification;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;

@Schema(title = "APP应用查询条件")
@Getter
public class AppQueryCriteria {
    @Schema(title = "名称/代码")
    private String keyword;

    public AppSpecification specification(String application){
        return AppSpecification.builder()
                .application(application)
                .keyword(keyword)
                .build();
    }
}
